<template>
	<view class="agreement">
		<u-parse :html="info.content" :tag-style="parseStyle"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{},
				parseStyle:{
					'p': 'line-height: 48rpx;margin-bottom: 0rpx;font-size: 30rpx;',
					'img': 'width:100%'
				},
			}
		},
		onLoad() {
			this.getDetail()
		},
		methods: {
			getDetail(){
				this.$request({
					url: '/agreement/getDetail',
					method: 'get',
					data: {type:11}
				}).then(res => {
					if(res.code===200){
						this.info = res.data
					}
				})
			},
		}
	}
</script>
<style>
	page{
		background: #fff;
	}
</style>
<style lang="scss" scoped>
	.agreement {
		padding: 24rpx 24rpx 96rpx;
		font-size: 28rpx;
		color: #333;
	}
</style>
